<?php /*a:3:{s:50:"D:\www\long_shop\app\view\assess\assess_index.html";i:1702389678;s:42:"D:\www\long_shop\app\view\common\head.html";i:1702389678;s:48:"D:\www\long_shop\app\view\common\pagination.html";i:1702389678;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="/static/jquery/jquery-1.12.4.min.js"></script>    
    <link href="/static/bst5.3.2/css/bootstrap.min.css" rel="stylesheet">
    <script src="/static/bst5.3.2/js/bootstrap.bundle.min.js"></script>
    <link rel="stylesheet" href="/static/bst-icons/font/bootstrap-icons.css">
    <script src="/static/layer/layer/layer.js"></script>
    <link rel="stylesheet" href="/static/css/my.css">    
</head>
<head>
<title>评价榜</title>

<style>
.form-control{width: initial;display: inline-block;}  
</style>
</head>
<body style="">


<div class=" "  style="border:0 solid #ccc;padding: 10px;"  >
    <form action="/index.php/assess/index" method="post">
    <div class="row" id="query_bar" style="height: 50px;line-height: 50px;">
        <div class="col-2" style="text-align: left;line-height: 50px;font-size: 2rem;" >
            <h2>评价表</h2>
        </div>
        <div class="col-10">
            <label for="name" >排序：</label>
            <select name="sort" class="form-control">
                <option value="">综合星级</option>
                <option value="1">商品质量</option>
                <option value="2">服务态度</option>
                <option value="3">描述相符</option>
                <option value="4">发货速度</option>
            </select>

            <label for="name" >姓名：</label>
            <input class="form-control" type="text"  id="name" name="name" value="<?php echo htmlentities($name); ?>" placeholder="姓名" />
            <label for="mobile" >手机：</label>
            <input class="form-control" type="text"  id="mobile" name="mobile" value="<?php echo htmlentities($mobile); ?>" placeholder="手机号码" />
            <button type="button" class="btn btn-warning query" style="vertical-align: middle;" >
                <span class="bi-search" ></span>
            </button>
        </div>
    </div>
     </form>

    <table class="table table-sm table-hover table-striped" >

        <thead>
            <th>序号</th>
            <th>评价人</th>
            <th>商家</th>
            <th>订单</th>
            <th>评价内容</th>
            <th>评价图片</th>
            <th>商品质量</th>
            <th>服务态度</th>
            <th>描述相符</th>
            <th>发货速度</th>
            <th>综合星</th>
            <th>评价日期</th>
            <th>
<!--               <button type="button" class="btn btn-sm btn-primary" id="news_add">
                  <span class="bi-plus-lg" style="color:white;"></span>
              </button> -->
            </th>
        </thead>

        <tbody>
            <?php foreach($list['data'] as $k=>$kv): ?>
            <tr>
                <td><?php echo htmlentities($k+1); ?></td>
                <td><?php echo htmlentities($kv['from_name']); ?></td>
                <td><?php echo htmlentities($kv['to_name']); ?></td>
                <td><?php echo htmlentities($kv['order_no']); ?></td>
                <td><?php echo htmlentities($kv['text']); ?></td>
                <td><img src="<?php echo htmlentities($kv['image']); ?>" style="width:60px;" /></td>
                <td><?php echo htmlentities($kv['v1_star']); ?></td>
                <td><?php echo htmlentities($kv['v2_star']); ?></td>
                <td><?php echo htmlentities($kv['v3_star']); ?></td>
                <td><?php echo htmlentities($kv['v4_star']); ?></td>
                <td style="color:green;"><?php echo htmlentities($kv['stars']); ?></td>
                <td><?php echo htmlentities($kv['create_time']); ?></td>
                <td>
                    <!-- <button style="button" class="btn btn-sm btn-info news_edit" news_id="<?php echo htmlentities($kv['id']); ?>" ><span class="bi-pencil"></span></button> -->
                </td>
            </tr>
            <?php endforeach; ?>

        </tbody>    
    </table>

          <ul class="pagination pagination" >

        <?php if($list['current_page']>1): ?>
            <li class="page-item">
                <a class="page-link" href="?page=1<?php if(!empty($query)): ?><?php echo htmlentities($query); ?><?php endif; if(!empty($show_grid)): ?>&show_grid=<?php echo htmlentities($show_grid); ?><?php endif; ?>">
                    <span class="bi-chevron-double-left"></span>
                </a>
            </li>
            <li class="page-item">
                <a class="page-link" href="?page=<?php echo htmlentities($list['current_page']-1); if(!empty($query)): ?><?php echo htmlentities($query); ?><?php endif; if(!empty($show_grid)): ?>&show_grid=<?php echo htmlentities($show_grid); ?><?php endif; ?>">
                    <span class="bi-chevron-left"></span>
                </a>
            </li>
        <?php endif; ?>

        <li class="page-item">
            <c class="page-link text-secondary"><?php echo htmlentities($list['current_page']); ?>/<?php echo htmlentities($list['last_page']); ?></c>
        </li>

        <?php if($list['current_page']<$list['last_page']): ?>
            <li class="page-item">
                <a class="page-link" href="?page=<?php echo htmlentities($list['current_page']+1); if(!empty($query) && $query!=''): ?><?php echo htmlentities($query); ?><?php endif; if(!empty($show_grid)): ?>&show_grid=<?php echo htmlentities($show_grid); ?><?php endif; ?>">
                    <span class="bi-chevron-right"></span>    <!--下一页-->
                </a>
            </li>
            <li class="page-item">
                <a class="page-link" href="?page=<?php echo htmlentities($list['last_page']); if(!empty($query)): ?><?php echo htmlentities($query); ?><?php endif; if(!empty($show_grid)): ?>&show_grid=<?php echo htmlentities($show_grid); ?><?php endif; ?>">
                    <span class="bi-chevron-double-right"></span>    <!--末页-->
                </a>
            </li>
        <?php endif; ?>


      </ul>
      <br/>
      
  </div>

<script type="text/javascript">

    $(function(){
    $(".query").on('click',function(){
        var index = layer.load(0, {shade: false}); //0代表加载的风格，支持0-2

        $("form").submit();
        layer.close(index);
    }) 


      $("#news_add").on('click',function(){
        location.href="/index/news_edit";
      })      



      $(".news_edit").on('click',function(){
        var id = $(this).attr('news_id');
        var url ="/index/news_edit/id/"+id;
        console.log(url);
        location.href=url;
      })
    })

</script>


</body>
</html>
